<template>
  <section>
    <el-button @click="goback" size="mini" round>返回</el-button>
  </section>
</template>

<script>
    export default {
      name: "go-back-button",
      data(){
          return{
            origin:""
          }
      },
      methods:{
          goback(){
            this.$router.replace({path:this.origin});
          }
      },mounted(){
          this.origin = this.$route.query.origin;
      }
    }
</script>

<style scoped>

</style>
